/*
 *	This file is part of Lounge-Cast.
 *
 *  Author:  	Markus Moormann
 *	E-mail:  	mmoorman@uni-osnabrueck.de
 *	Copyright:	University of Osnabrueck (Zentrum Virtuos)
 * 	Website:	www.uni-osnabrueck.de
 *	Date:		16.02.2011
 *
 *	Lounge-Cast is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *	Lounge-Cast is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Lounge-Cast.  If not, see <http://www.gnu.org/licenses/>.
 */
package backend.vo;

import java.util.Date;

/**
 * class represents a text
 *
 * @author Markus Moormann
 */
public class TextVO extends MediaVO {

	/**
	 * the unformatted text
	 */
	public String text;
	/**
	 * the formatted text containing HTML-Tags
	 */
	public String formated_text;
	/**
	 * the background color to show
	 */
	public int background_color;
	/**
	 * further styling skin (not yet implemented)
	 */
	public String skin;
	/**
	 * an image to show
	 */
	public ImageVO image;
	/**
	 * a video to show
	 */
	public VideoVO video;
	/**
	 * the orientation where to show the image ('left'|'right'|'bottom'|'top')
	 */
	public String image_orientation;
	/**
	 * the link to the background image
	 */
	public String background_image;
	/**
	 * margin from bottom;
	 */
	public int margin_bottom;
	/**
	 * margin from left
	 */
	public int margin_left;
	/**
	 * margin from top
	 */
	public int margin_top;
	/**
	 * margin from right
	 */
	public int margin_right;
	
	/**
	 * publish date of the text
	 */
	public Date publish_date;
	
	/**
	 * default constructor
	 */
	public TextVO() {
		super();
	}

	/**
	 * constructor
	 * 
	 * @param media a <code>MediaVO</code> containing a common data
	 * @param text the unformatted text
	 * @param formated_text the formatted text
	 * @param background_color the background color to show
	 * @param skin further styling skin (not yet implemented)
	 * @param image an image to show
	 * @param video a video to show
	 * @param image_orientation the orientation where to show the image ('left'|'right'|'bottom'|'top')
	 * @param background_image the background image to show
	 * @param margin_bottom margin from bottom
	 * @param margin_left margin from left
	 * @param margin_top margin from top
	 * @param margin_right margin from right
	 * 
	 */
	public TextVO(MediaVO media, 
				String text, 
				String formated_text, 
				int background_color,
				String skin,
				ImageVO image,
				VideoVO video,
				String image_orientation,
				String background_image,
				int margin_bottom,
				int margin_left,
				int margin_top,
				int margin_right) {
		this.media_id = media.media_id;
		this.added = media.added;
		this.addedBy = media.addedBy;
		this.approved = media.approved;
		this.converted = media.converted;
		this.duration = media.duration;
		this.newsticker = media.newsticker;
		this.playlist_id = media.playlist_id;
		this.position = media.position;
		this.reference = media.reference;
		this.title = media.title;
		this.type = media.type;
		this.start_date = media.start_date;
		this.valid_date = media.valid_date;
		this.feed = media.feed;
		this.feed_item_uri = media.feed_item_uri;
		this.category = media.category;
		this.hide_title = media.hide_title;
		this.title_color = media.title_color;
		
		this.added = media.added;
		this.addedBy = media.addedBy;
		this.approved = media.approved;
		this.converted = media.converted;
		this.text = text;
		this.formated_text = formated_text;
		this.background_color = background_color;
		this.skin = skin;
		this.image = image;
		this.video = video;
		this.image_orientation = image_orientation;
		this.background_image = background_image;
		this.margin_bottom = margin_bottom;
		this.margin_left = margin_left;
		this.margin_right = margin_right;
		this.margin_top = margin_top;
	}

}
